package com.jumi.microservice.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author scw
 * @date 2020/11/4
 */
@Configuration
@RefreshScope
public class WxH5PayConfig {

    @Value("${wxh5pay.appid}")
    private String appId;

    @Value("${wxh5pay.mchId}")
    private String mchId;

    @Value("${wxh5pay.notifyUrl}")
    private String notifyUrl;

    @Value("${wxh5pay.key}")
    private String key;

    @Value("${wxh5pay.unifiedOrderUrl}")
    private String unifiedOrderUrl;

    @Value("${wxh5pay.secret}")
    private String secret;

    @Value("${wxh5pay.refundUrl}")
    private String refundUrl;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getUnifiedOrderUrl() {
        return unifiedOrderUrl;
    }

    public void setUnifiedOrderUrl(String unifiedOrderUrl) {
        this.unifiedOrderUrl = unifiedOrderUrl;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getRefundUrl() {
        return refundUrl;
    }

    public void setRefundUrl(String refundUrl) {
        this.refundUrl = refundUrl;
    }
}
